<?php
$studentId = $_GET['student_id'];
$dsn = "sqlsrv:Server=LAPTOP-LD8O4C6L\SQLEXPRESS;Database=Student";
$db = new PDO($dsn,"sa","123456");
$sql = "delete from Student where StudentId = '{$studentId}'";
        $result = $db->exec($sql);
        if ($result){
            echo "删除成功"."<a href='student_list.php'>返回列表页</a>";
        }else{
            echo "删除失败";
        }
?>

